@extends('Home.Layouts.index')
@section('main')
    <div class="details">
        <div class="container">
            <div class="row single">
                <div class="col-md-9">
                    <div class="single_left">

                        <div class="grid images_3_of_2">
                            <ul id="etalage">
                                <li>
                                    <a href="optionallink.html">
                                        <img class="etalage_thumb_image" src="/home/images/d1.jpg" class="img-responsive" />
                                        <img class="etalage_source_image" src="/home/images/d1.jpg" class="img-responsive" title="" />
                                    </a>
                                </li>
                                <li>
                                    <img class="etalage_thumb_image" src="/home/images/d2.jpg" class="img-responsive" />
                                    <img class="etalage_source_image" src="/home/images/d2.jpg" class="img-responsive" title="" />
                                </li>
                                <li>
                                    <img class="etalage_thumb_image" src="/home/images/d3.jpg" class="img-responsive"  />
                                    <img class="etalage_source_image" src="/home/images/d3.jpg"class="img-responsive"  />
                                </li>
                                <li>
                                    <img class="etalage_thumb_image" src="/home/images/d4.jpg" class="img-responsive"  />
                                    <img class="etalage_source_image" src="/home/images/d4.jpg"class="img-responsive"  />
                                </li>
                            </ul>
                            <div class="clearfix"></div>
                        </div>
                        <div class="desc1 span_3_of_2">
                            <h3>{{$details['goods_name']}}</h3>
                            <p>￥ {{$details['goods_price']}}</p>
                            <form action="/home/order/insert" method="post">
                                {{csrf_field()}}
                            <div class="det_nav">
                                <h4>颜色：</h4>
                                <ul>
                                    <li><label><input type="radio" name="goods_color" value="红"><i></i>红</label></li>
                                    <li><label><input type="radio" name="goods_color" value="黄"><i></i>黄</label></li>
                                    <li><label><input type="radio" name="goods_color" value="蓝"><i></i>蓝</label></li>
                                </ul>
                            </div>
                            <div class="det_nav1">
                                <h4>尺码 :</h4>
                                <div class=" sky-form col col-4">
                                    <ul>
                                        <li><label><input type="radio" name="goods_size" value="35"><i></i>35</label></li>
                                        <li><label><input type="radio" name="goods_size" value="36"><i></i>36</label></li>
                                        <li><label><input type="radio" name="goods_size" value="37"><i></i>37</label></li>
                                        <li><label><input type="radio" name="goods_size" value="38"><i></i>38</label></li>
                                        <li><label><input type="radio" name="goods_size" value="39"><i></i>39</label></li>
                                        <li><label><input type="radio" name="goods_size" value="40"><i></i>40</label></li>
                                        <li><label><input type="radio" name="goods_size" value="41"><i></i>41</label></li>
                                        <li><label><input type="radio" name="goods_size" value="42"><i></i>42</label></li>
                                        <li><label><input type="radio" name="goods_size" value="43"><i></i>43</label></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="btn_form">
                                <button type="submit">购买</button>
                            </div>
                            </form>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="single-bottom1">
                        <h6>Details</h6>
                        <p class="prod-desc">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option</p>
                    </div>

                </div>
                <div class="col-md-3 span_1_of_right">
                    <div class="sellers">
                        <h3 class="m_2">热销</h3>
                        @foreach($sale  as $k=>$v)
                            <div class="best">
                                <div class="icon">
                                    <img src="/home/images/{{$v['goods_img']}}" class="img-responsive" alt=""/>
                                </div>
                                <div class="data">
                                    <h4><a href="#">{{$v['goods_name']}}</a></h4>
                                    <p>￥{{$v['goods_price']}}</p>
                                    <h5>￥{{$v['goods_price']}}</h5>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                        @endforeach
                    </div>

                    <div class="sellers">
                        <h3 class="m_2">Tags</h3>
                        <div class="tags">
                            <ul>
                                <li><a href="/home/list/index?cateid=27">Air Max 1,</a></li>
                                <li><a href="/home/list/index?cateid=15">NMD,</a></li>
                                <li><a href="/home/list/index?cateid=13">Ultra Boost,</a></li>
                                <li><a href="/home/list/index?cateid=24">Zoom,</a></li>
                                <li><a href="/home/list/index?cateid=17">Superstar,</a></li>
                                <li><a href="/home/list/index?cateid=31">AJ1,</a></li>
                            </ul>
                        </div>
                    </div>
                    <section  class="sky-form">
                        <div class="sellers">
                            <h3 class="m_2">精品</h3>
                            <section class="slider">
                                <div class="flexslider">
                                    <ul class="slides">
                                        @foreach($best as $k=>$v)
                                            <li>
                                                <div class="tittle">
                                                    <img src="/home/images/{{$v['goods_img']}}" class="img-responsive" alt=""/>
                                                    <h6>{{$v['goods_name']}}</h6>
                                                    <p>精品热销</p>
                                                    <a class="show1" href="/home/detail/index?id={{$v['id']}}">立即购买</a>
                                                </div>
                                            </li>
                                        @endforeach
                                    </ul>
                                </div>
                            </section>

                            <!-- FlexSlider -->
                            <script defer src="/home/js/jquery.flexslider.js"></script>
                            <script type="text/javascript">
                                $(function(){
                                    SyntaxHighlighter.all();
                                });
                                $(window).load(function(){
                                    $('.flexslider').flexslider({
                                        animation: "slide",
                                        start: function(slider){
                                            $('body').removeClass('loading');
                                        }
                                    });
                                });
                            </script>
                        </div>
                    </section>

                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
@endsection